package com.guojing.jl.myspring.demo;

import com.guojing.jl.myspring.demo.service.AppConfig;
import com.guojing.jl.myspring.demo.service.OrderService;
import com.guojing.jl.myspring.demo.service.UserInterface;
import com.guojing.jl.myspring.demo.service.UserService;
import com.guojing.jl.myspring.demo.spring.MyApplicationContext;

public class MainTest {

    public static void main(String[] args) throws Exception {

        MyApplicationContext context = new MyApplicationContext(AppConfig.class);
        UserInterface userService = (UserInterface) context.getBean("userService");
//        String test = userService.getName("test");
//        System.out.println(test);

    }

}
